package reflect;

/**
 * Created by steve
 * 2018/10/18 12:08 AM
 */
public class ClassDemo2 {

    public static void main(String[] args) {


        Class c1 = int.class; // int 的类类型
        Class c2 = String.class;
        Class c3 = double.class;
        Class c4 = Double.class;
        Class c5 = void.class;
        Class c6 = Integer.class;

        System.out.println(c1.getName());
        System.out.println(c2.getName());
        System.out.println(c2.getSimpleName()); // 不包含包名的类的名称
        System.out.println(c3.getName());
        System.out.println(c4.getName());
        System.out.println(c5.getName());
        System.out.println(c6.getName());
    }
}
